package com.avic.rong.auditcertification.activity;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.avic.rong.BaseActivity;
import com.avic.rong.R;
import com.avic.rong.auditcertification.fragment.ShenFenRzActivity;
import com.avic.rong.utils.SharedPreferencesUtil;

import butterknife.BindView;
import butterknife.OnClick;


//认证列表
public class MyCertificationActivity extends BaseActivity {
    @BindView(R.id.tv_own_certification)
    TextView tv_rong_certification;
    @BindView(R.id.rl_own_certification)
    RelativeLayout rl_rong_certification;
    @BindView(R.id.tv_enterprise_certification)
    TextView tv_enterprise_certification;
    @BindView(R.id.rl_enterprise_certification)
    RelativeLayout rl_enterprise_certification;
    private String logintoken;


    @Override
    protected int getContentViewId() {
        return R.layout.activity_my_certification;
    }

    @Override
    protected void initView() {
        tvTitle.setText("个人认证");

        if (SharedPreferencesUtil.isLogin()) {
            logintoken = getSharedPreferencesUtil().getLogintoken();

        }else {

        }



    }



    @Override
    protected void addListener() {
        ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @OnClick({R.id.rl_own_certification, R.id.rl_enterprise_certification,/* R.id.tv_state*/})
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.rl_own_certification://个人认证
                startActivity(ShenFenRzActivity.queryIntent(MyCertificationActivity.this));
                break;
            case R.id.rl_enterprise_certification://企业认证、
                startActivity(EnterpriseCertificationActivity.queryIntent(MyCertificationActivity.this));
                break;
        }
    }

    public static Intent queryIntent(Context context) {
        Intent intent = new Intent(context, MyCertificationActivity.class);
        return intent;
    }
}
